package org.jugile.demo.domain;

import org.jugile.daims.Bo;
import org.jugile.daims.anno.*;
import org.jugile.util.Time;
import org.jugile.util.Money;
import org.jugile.demo.common.*;


@DaimsObject(table="visit_t")
public class VisitBase extends Bo {

	@Fld // field
	private Time start;
	public Time getStart() { return start; }
	public Visit setStart(Time v) { return (Visit)setFld("start",v); }
 
	@Fld // field
	private Time end;
	public Time getEnd() { return end; }
	public Visit setEnd(Time v) { return (Visit)setFld("end",v); }
 
	@Fld // field
	private String key;
	public String getKey() { return key; }
	public Visit setKey(String v) { return (Visit)setFld("key",v); }
 
	@Fld // field
	private int nkey;
	public int getNkey() { return nkey; }
	public Visit setNkey(int v) { return (Visit)setFld("nkey",v); }
 
 
 
	// --- n - 1 ----

	@ConnectionN1(c="cVisits",name="Author_f")
	private Author author;
	public Author getAuthor() { return (Author)getN1("author"); }
	public Visit setAuthor(Author o) { return (Visit)setN1("author",o); }


	@ConnectionN1(c="cVisits",name="Library_f")
	private Library library;
	public Library getLibrary() { return (Library)getN1("library"); }
	public Visit setLibrary(Library o) { return (Visit)setN1("library",o); }


	@ConnectionN1(c="cOldVisits",name="oldAuthor_f")
	private Author authorOld;
	public Author getOldAuthor() { return (Author)getN1("authorOld"); }
	public Visit setOldAuthor(Author o) { return (Visit)setN1("authorOld",o); }

 
	// --- 1 - n ----
 
	// --- n - n ---
 

	// ---- common utils ----
	protected Domain d() { return Domain.getDomain(); }


}